#pragma once
#include <iostream>
#include <assert.h>
#include "point.h"
using namespace std;

class polar
{
public:
    polar() {}

    polar(int p, int tan)
        :_p(p)
        , _tan(tan)
    {}

    void show()
    {
        cout << '(' << _p << ", " << _tan << ')' << endl;
    }

    polar& operator=(const point& obj)
    {
        int p = sqrt(pow(obj._x, 2) + pow(obj._y, 2));
        assert(obj._x != 0);
        int tan = obj._y / obj._x;

        return *this;
    }

    int _p = 0;
    int _tan = 0;
};